/*
 ============================================================================
 Name		: iReadDocument.cpp
 Author	  : readever.cn
 Copyright   : Copyright 2009-2010
 Description : CiReadDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "iReadAppUi.h"
#include "iReadDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CiReadDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CiReadDocument* CiReadDocument::NewL(CEikApplication& aApp)
	{
	CiReadDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CiReadDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CiReadDocument* CiReadDocument::NewLC(CEikApplication& aApp)
	{
	CiReadDocument* self = new (ELeave) CiReadDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CiReadDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CiReadDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CiReadDocument::CiReadDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CiReadDocument::CiReadDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CiReadDocument::~CiReadDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CiReadDocument::~CiReadDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CiReadDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CiReadDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CiReadAppUi;
	}

// End of File
